export interface ENode {
    pos: number,
    isRec: boolean,
    label: string,
    value: string,
    children: ENode[]
}

export function createENode(pos: number, label: string, value: string, children?: ENode[], isRec?: boolean,): ENode {
    isRec = isRec == undefined ? false : isRec
    children = children == undefined ? [] : children
    return {
        pos,
        isRec,
        label,
        value,
        children
    }
}